package com.suke.controller;

/**
 * @author java43.熊佳
 * @date 2020/8/14 19:38
 * @Description
 */
import com.suke.util.EmpFeginClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class TestController {
    /*@Autowired
    private RestTemplate restTemplate;*/
    @Autowired
    private EmpFeginClient empClient;

    @RequestMapping("/hello/{word}")
    public String hello(@PathVariable("word")String word) {
        return empClient.sayHello(word);
    }
}
